Optimal. Leaf size=38 \[ \frac {2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a x^n-b x^2}}\right )}{\sqrt {b} (2-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1979, 2008, 203} \[ \frac {2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a x^n-b x^2}}\right )}{\sqrt {b} (2-n)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 1979
Rule 2008
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {x \left (-b x+a x^{-1+n}\right )}} \, dx &=\int \frac {1}{\sqrt {-b x^2+a x^n}} \, dx\\ &=\frac {2 \operatorname {Subst}\left (\int \frac {1}{1+b x^2} \, dx,x,\frac {x}{\sqrt {-b x^2+a x^n}}\right )}{2-n}\\ &=\frac {2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {-b x^2+a x^n}}\right )}{\sqrt {b} (2-n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 80, normalized size = 2.11 \[ -\frac {2 \sqrt {a} x^{n/2} \sqrt {1-\frac {b x^{2-n}}{a}} \sin ^{-1}\left (\frac {\sqrt {b} x^{1-\frac {n}{2}}}{\sqrt {a}}\right )}{\sqrt {b} (n-2) \sqrt {a x^n-b x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {{\left (a x^{n - 1} - b x\right )} x}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.69, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {\left (a \,x^{n -1}-b x \right ) x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {{\left (a x^{n - 1} - b x\right )} x}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.12, size = 66, normalized size = 1.74 \[ -\frac {\sqrt {a}\,x^{n/2}\,\mathrm {asin}\left (\frac {\sqrt {b}\,x^{1-\frac {n}{2}}}{\sqrt {a}}\right )\,\sqrt {1-\frac {b\,x^{2-n}}{a}}}{\sqrt {b}\,\left (\frac {n}{2}-1\right )\,\sqrt {a\,x^n-b\,x^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {x \left (a x^{n - 1} - b x\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________